/*********************************************************************************
 *      Copyright:  (C) 2022 zengwen<1825984037@qq.com>
 *                  All rights reserved.
 *
 *       Filename:  send_data.c
 *    Description:  This file 
 *                 
 *        Version:  1.0.0(11/07/22)
 *         Author:  zengwen <1825984037@qq.com>
 *      ChangeLog:  1, Release initial version on "11/07/22 17:24:19"
 *                 
 ********************************************************************************/
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "logger.h"

int socket_client_write(int sockfd,char massage[])
{
	int  rv;
	char buf[128];

	if(write(sockfd,massage,strlen(massage))<0)
	{
		log_err("Write data to server failure:%s\n",strerror(errno));
		return -4;
	}
	log_info("Write data to server succesfully!\n");
	return 0;
}

